package day13;

import java.io.*;
import java.util.Properties;

public class test8 {
    public static void main(String[] args) throws IOException {
        FileReader fr=new FileReader("study\\src\\prop.properties");
        Properties prop=new Properties();
        prop.load(fr);
        fr.close();
        System.out.println(prop);

    }
    private static  void myStore() throws IOException {
        Properties prop=new Properties();
        prop.setProperty("itheima001","ps");
        prop.setProperty("itheima002","pys");
        prop.setProperty("itheima003","bx");
        FileWriter fw=new FileWriter("study\\src\\prop.properties");
        prop.store(fw,null);
        fw.close();
    }
}
